package com.tiancheng.trade.settlement.vo.settlement.admin;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * @Auther: liudong
 * @Date: 2024/4/29 09:43
 * @Param ${tags}
 * @Description: 成功对账单查询条件
 */
@Data
public class SuccessBillQueryVO {
    /**
     * 子订单号
     */
    private String subOrderId;
    /**
     * 主订单号
     */
    private String orderId;
    /**
     * 商户名称
     */
    private String merchantName;
    /**
     * 商品类型
     */
    private String orderSource;

    /**
     * 是否有异常： 0:正常  1:异常
     */
    private String isException;

    /**
     * 交易时间
     */
    private String payTimeBegin;
    private String payTimeEnd;
    /**
     * 核销时间
     */
    private String verifiedTimeBegin;
    /**
     *
     */
    private String verifiedTimeEnd;
    /**
     * 清分时间
     */
    private String bankClearDateBegin;
    /**
     *
     */
    private String bankClearDateEnd;
    /**
     * 对账时间
     */
    private String shouldBillDateBegin;
    /**
     *
     */
    private String shouldBillDateEnd;
    private Integer currentPage;

    private Integer pageSize;

    public Integer getCurrentPage() {
        if (null == currentPage || currentPage < 0) {
            currentPage = 1;
        }
        return currentPage;
    }

    public Integer getPageSize() {
        if (null == pageSize) {
            pageSize = 10;
        }
        return pageSize;
    }

    public String getSubOrderId() {
        if (StringUtils.isNotEmpty(subOrderId)) {
            subOrderId = subOrderId.trim();
        }
        return subOrderId;
    }

    public String getOrderId() {
        if (StringUtils.isNotEmpty(orderId)) {
            orderId = orderId.trim();
        }
        return orderId;
    }

    public String getMerchantName() {
        if (StringUtils.isNotEmpty(merchantName)) {
            merchantName = merchantName.trim();
        }
        return merchantName;
    }

}
